package mark.tom.gear.base.extension

import androidx.lifecycle.MutableLiveData
import mark.tom.gear.base.utils.LiveDataUtil

/**
 * Description: 为MutableLiveData添加发送数据的方法
 * Copyright: Copyright (c) 2021
 * Project: Gear
 * Author: ttmk110@163.com
 * Date: 2021/4/2 17:07
 */
fun <T> MutableLiveData<T>.send(value: T) {
    LiveDataUtil.setValue(this, value)
}